import { request } from "@/http/service"

export function getCreditorData(data: any) {
  return request({
    url: "/creditor/list",
    method: "post",
    data
  })
}

export function addCreditorData(data: any) {
  return request({
    url: "/creditor/add",
    method: "post",
    data
  })
}
export function editCreditorData(data: any) {
  return request({
    url: "/creditor/edit",
    method: "post",
    data
  })
}
export function removeCreditorData(id: string) {
  return request({
    url: `/creditor/delete/${id}`,
    method: "delete"
  })
}

export function batchRemoveCreditorData(data: any) {
  return request({
    url: "/creditor/batchDelete",
    method: "post",
    data
  })
}
